// temp/actionSheet/actionSheet.js
Component({
  /**
   * 组件的属性列表
   */
  ready: function () {

  },

  properties: {
    pathsData: {
      type: Object,
      value: {},
    }
  },
  
options: {
  // 启用组件定义的样式
  addGlobalClass: true
},

  /**
   * 组件的初始数据
   */
  data: {
    showDialog: false,
    pathsData: {},
    listHeight: "100rpx"
  },

  /**
   * 组件的方法列表
   */
  methods: {
    viewDetail: function () {
      let that = this
      if (that.data.showDialog) {
        that.setData({
          showDialog: false,
          listHeight: "100rpx"
        });
      } else {
        that.setData({
          showDialog: true,
          listHeight: "80vh"
        });
      }
    },
    close: function () {
      this.setData({
        showDialog: false
      })
    }
  }
})
